package org.dynamicallyacquired.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("mk_datapoint")
public class DataPoint extends Model<DataPoint> {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private Long dataTypeId;
    private String dataPointId;
    private Long androidId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
